package mviewer.functions;

public class Scaling implements IFunction {

	final private float PRECISION = 0.1f;

	public float renderY(int x) {
		if (x==0)
			return PRECISION;
//		int sign = x < 0 ? -1 : 1;
//		x *= sign;
		float f = x * PRECISION;
//		f = (float)Math.log(f);
		return f;
	}

	public int renderX(float y) {
		return (int)(y / PRECISION);
	}

	public int getMinimum() {
		return -100;
	}

	public int getMaximum() {
		return 100;
	}
}
